package com.jin.gulimall.order.feign;

import com.jin.common.utils.R;
import com.jin.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getAdress(@PathVariable("memberId") Long memberId);

    @GetMapping("/member/memberreceiveaddress/fare")
    R getFare(@RequestParam("addrId") Long addrId);
}
